package com.wmf.service.impl;

import com.wmf.dao.UserDao;
import com.wmf.model.User;
import com.wmf.service.UserService;

import java.sql.SQLException;
import java.util.List;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDao();
    @Override
    public int register(User user) {

        int flag = userDao.register(user);

        return flag;
    }

    @Override
    public List<User> getUserInfo()  {
        List<User> userList = userDao.getUserInfo();
        return userList;
    }
}
